package day0922.test;

/**
 * @Author Stringzhua
 * @Date 2024/9/22 14:47
 * description:
 */
class Base{
    public void show(int i){
        System.out.println("Value is" + i);
    }
}
public class Sub extends Base{
    public void show(int j){
        System.out.println("It is" + j);
    }

    public void show(String s){
        System.out.println("I Was Pass" + s);
    }

    public static void main(String[] args) {
        Base b1 = new Base();
        Base b2 = new Sub();
        b1.show(5);
        b2.show(6);
    }
}
